﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RoleHelper
{
    public partial class NuevaAventura : Form
    {
        public NuevaAventura()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void botonNuevaAventura_Click(object sender, EventArgs e)
        {
            if ((TNombre.Text != "") && (TDesc.Text != ""))
            {
                Program.avent.setNombre(TNombre.Text);
                Program.avent.setDesc(TDesc.Text);
                //Program.Principal.men
                Program.Principal.disablerenabler("nueva aventura",false);
                Program.Principal.disablerenabler("editarSitu", true);
                Program.Principal.disablerenabler("editarPj", true);
                Program.Principal.refreshbarra();
                this.Close();
            }   
        }
    }
}
